package com.foreknow.demo10;

public class Penguin extends Pet {

    public void swimming() {
        System.out.println("游泳");
    }

    @Override
    public void toHospital() {
        this.setHealth(70);
        System.out.println("治疗、吃药");
    }
}
